package com.info.game;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.component.game.RenderComponent;
import com.engine.game.GameFabric;
import com.engine.game.GameObject;

public class NewGameButtonRenderComponent implements RenderComponent{
	
	private Sprite sprite;
	

	public NewGameButtonRenderComponent(){
		
        this.sprite = GameFabric.createSprite("StartButton.png");
		
        
        
        float y = Gdx.graphics.getHeight() - (Gdx.graphics.getHeight()*(1.0f/5));
        float width = (1.0f/4)*Gdx.graphics.getWidth();
        float height = (1.0f/5)*Gdx.graphics.getHeight();
        
        
		this.sprite.setBounds(0.0f, y, width, height);
		
	}
	

	@Override
	public void dispose() {
		this.sprite.getTexture().dispose();
		
	}

	@Override
	public void update(GameObject object) {
		
		
	}

	@Override
	public Sprite getSprite() {
		return this.sprite;
	}

}
